<?php

	$fields = array
	(
		'url'=>array
		(
			'title'=>LANG_URL.'/'.LANG_ROLES,
			'url'=>$this->name,
			'id'=>'id',
			'sort'=>false,
		),
		
		'user_login_to'=>array
		(
			'title'=>LANG_TO_USER,
			'url'=>'users',
			'id'=>'user_id_to',
			'filter' => true,
			'model'=>'users',
			'proc'=>'sp_users_list',
			'fast_search_filter'=>true
		),
		
		'datetime_from'=>array
		(
			'title'=>LANG_START_DATE,
		),
		
		'datetime_from_to'=>array
		(
			'title'=>LANG_START_DATE.'('.LANG_FROM.')',
			'filter' => true,
			'in_grid'=>false
		),
		
		'datetime_from_until'=>array
		(
			'title'=>LANG_START_DATE.'('.LANG_UNTIL.')',
			'filter' => true,
			'in_grid'=>false
		),
		
		'datetime_to'=>array
		(
			'title'=>LANG_END_DATE,
		),
		
		'datetime_to_to'=>array
		(
			'title'=>LANG_END_DATE.'('.LANG_FROM.')',
			'filter' => true,
			'in_grid'=>false
		),
		
		'datetime_to_until'=>array
		(
			'title'=>LANG_END_DATE.'('.LANG_UNTIL.')',
			'filter' => true,
			'in_grid'=>false
		),
		
		'type'=>array
		(
			'title'=>LANG_BY_ROLES,
			'filter' => true,
			'filter_name'=>'general',
			'in_grid'=>false
		),
			
	);
	
	$this->helpers->htmlx->MenuText1(LANG_DELEGATIONS.': '.LANG_LIST.' '.LANG_FOR.' "'.ucfirst($this->data[user_login].'"'), "list.gif");		
	$this->helpers->grids->Grid($this->data[$this->name], $fields, 1);
	
?>